﻿using RAP.Framework.Libary.DomTemplateBuilder.Attributes;
using RAP.Framework.Libary.DomTemplateBuilder.Handler.Conditional;

namespace RAP.Framework.Libary.DomTemplateBuilder.Element.Conditional
{
	/// <summary>
	/// “否则”分支节点
	/// </summary>
	[TagHandler( typeof( ElseIfHandler ) )]
    public class ElseIf : If
    {
        public override void Initialize ( System.Xml.XmlNode node )
        {
            var parentEle = this.Parent as IElseIfElement;
            parentEle.ElseIfs.Add( this );
            this.ParseXMLAttributes( node );
        }
    }
}
